package com.lemon.exam.common.entity.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

import java.util.List;

/**
 * 通知数据传输对象
 *
 * @author Lemon
 * @since 2025/4/24 11:21
 */
public record NoticeDTO(Long id, @NotNull(message = "请选择通知类型") Integer type,
                        @NotNull(message = "请选择用户") @Size(min = 1, message = "请选择用户") List<String> userIdList,
                        @NotBlank(message = "请输入标题") String title,
                        @NotBlank(message = "请输入内容") String content,
                        String remark,
                        boolean isSave) {
}
